private _input = _this;

if (typeName _input == 'STRING') then {
	_input = [_input, 1];
};

_input params [
	['_table', '', ['']],
	['_amount', 1, [0]]
];

private _packet = format['%1|%2', _table, _amount];

private _response = 'AfterlifeLootExt' callExtension _packet;

if (_response == 'ERROR')exitWith {
	diag_log format['AfterlifeLootExt: 错误, 请检查外挂项目记录 - %1', _packet];
	""
};

private _return = if (_amount > 1) then 
{
	_response splitString '|'
} else 
{
	_response
};

_return